package com.cartrentalsystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cartrentalsystem.domain.po.Car;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cartrentalsystem.domain.vo.Result;

import java.time.LocalDate;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LHD
 * @since 2025-06-15
 */
public interface ICarService extends IService<Car> {

    Result<Page<Car>> pageList(Integer page, Integer size,Integer  status,String brand);

    Result<String> add(Car car);

    Result<String> updateCar(Car car);

    boolean updateStatus(Integer id, Integer status, Double mileage, LocalDate returnTime);

    String[] getNames();

    Result<Page<Car>> getAvailable(Integer page, Integer size);
}
